package github.hellocsl.gallerylayoutmanager;

import github.hellocsl.layoutmanager.gallery.Banner;
import ohos.aafwk.ability.delegation.AbilityDelegatorRegistry;
import org.junit.Test;

import static org.junit.Assert.assertEquals;
import static org.junit.Assert.assertNotNull;

public class ExampleOhosTest {
    @Test
    public void testBundleName() {
        final String actualBundleName = AbilityDelegatorRegistry.getArguments().getTestBundleName();
        assertEquals("github.hellocsl.gallerylayoutmanager", actualBundleName);
    }

    @Test
    public void testGetBanner() {
        Banner banner=new Banner(MyApplication.getmContext());
        assertNotNull(banner);
    }
}